package com.woniu.payback_font.service;

import com.github.pagehelper.PageInfo;
import com.woniu.payback_font.entity.Load;
import com.woniu.payback_font.entity.LoanApplication;
import com.woniu.payback_font.entity.Repayment;
import com.woniu.payback_font.vo.LoanVo;
import io.swagger.annotations.Api;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Api("借款loadService 接口")
public interface LoadService {

    List<LoanApplication> findLoanApplications();

    PageInfo<LoanApplication> dynamicPageSeach(Integer pageNum, Integer pageSize,
                                               String laName,
                                               String laMobile,
                                               String laIdcard,
                                               String laInvestorName,
                                               Integer laLoadApplicationStatus);

    int addLoan(LoanVo loanVo);

    int addfalseLoan(LoanVo loanVo);


    /**
     * 多条件查询 借款信息查询
     * @param lName 借款人名称（模糊查询）
     * @param lMobile 借款人手机号
     * @param lReceiptNo 借据号
     * @param lProductName 借款产品
     * @param lInvestorName 资方名称
     * @return
     */
    PageInfo<Load> findByPrimarydata(Integer pageNum, Integer pageSize, String lName, String lMobile, String lReceiptNo, String lProductName,
                                 String lInvestorName);

    /**
     *  借款详情查询接口（显示单条数据）
     * @return
     */
    Load findOne(Integer lId);



    PageInfo<Load> showUserLoan(Integer pageNum, Integer pageSize, String aUid);
}
